package com.zhiyou100.entity;

import java.util.ArrayList;
import java.util.List;

public class UserauditExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public UserauditExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAIdIsNull() {
            addCriterion("a_id is null");
            return (Criteria) this;
        }

        public Criteria andAIdIsNotNull() {
            addCriterion("a_id is not null");
            return (Criteria) this;
        }

        public Criteria andAIdEqualTo(Integer value) {
            addCriterion("a_id =", value, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdNotEqualTo(Integer value) {
            addCriterion("a_id <>", value, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdGreaterThan(Integer value) {
            addCriterion("a_id >", value, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("a_id >=", value, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdLessThan(Integer value) {
            addCriterion("a_id <", value, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdLessThanOrEqualTo(Integer value) {
            addCriterion("a_id <=", value, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdIn(List<Integer> values) {
            addCriterion("a_id in", values, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdNotIn(List<Integer> values) {
            addCriterion("a_id not in", values, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdBetween(Integer value1, Integer value2) {
            addCriterion("a_id between", value1, value2, "aId");
            return (Criteria) this;
        }

        public Criteria andAIdNotBetween(Integer value1, Integer value2) {
            addCriterion("a_id not between", value1, value2, "aId");
            return (Criteria) this;
        }

        public Criteria andAUIdIsNull() {
            addCriterion("a_u_id is null");
            return (Criteria) this;
        }

        public Criteria andAUIdIsNotNull() {
            addCriterion("a_u_id is not null");
            return (Criteria) this;
        }

        public Criteria andAUIdEqualTo(Integer value) {
            addCriterion("a_u_id =", value, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdNotEqualTo(Integer value) {
            addCriterion("a_u_id <>", value, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdGreaterThan(Integer value) {
            addCriterion("a_u_id >", value, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("a_u_id >=", value, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdLessThan(Integer value) {
            addCriterion("a_u_id <", value, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdLessThanOrEqualTo(Integer value) {
            addCriterion("a_u_id <=", value, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdIn(List<Integer> values) {
            addCriterion("a_u_id in", values, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdNotIn(List<Integer> values) {
            addCriterion("a_u_id not in", values, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdBetween(Integer value1, Integer value2) {
            addCriterion("a_u_id between", value1, value2, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUIdNotBetween(Integer value1, Integer value2) {
            addCriterion("a_u_id not between", value1, value2, "aUId");
            return (Criteria) this;
        }

        public Criteria andAUNameIsNull() {
            addCriterion("a_u_name is null");
            return (Criteria) this;
        }

        public Criteria andAUNameIsNotNull() {
            addCriterion("a_u_name is not null");
            return (Criteria) this;
        }

        public Criteria andAUNameEqualTo(String value) {
            addCriterion("a_u_name =", value, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameNotEqualTo(String value) {
            addCriterion("a_u_name <>", value, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameGreaterThan(String value) {
            addCriterion("a_u_name >", value, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameGreaterThanOrEqualTo(String value) {
            addCriterion("a_u_name >=", value, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameLessThan(String value) {
            addCriterion("a_u_name <", value, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameLessThanOrEqualTo(String value) {
            addCriterion("a_u_name <=", value, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameLike(String value) {
            addCriterion("a_u_name like", value, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameNotLike(String value) {
            addCriterion("a_u_name not like", value, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameIn(List<String> values) {
            addCriterion("a_u_name in", values, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameNotIn(List<String> values) {
            addCriterion("a_u_name not in", values, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameBetween(String value1, String value2) {
            addCriterion("a_u_name between", value1, value2, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNameNotBetween(String value1, String value2) {
            addCriterion("a_u_name not between", value1, value2, "aUName");
            return (Criteria) this;
        }

        public Criteria andAUNumIsNull() {
            addCriterion("a_u_num is null");
            return (Criteria) this;
        }

        public Criteria andAUNumIsNotNull() {
            addCriterion("a_u_num is not null");
            return (Criteria) this;
        }

        public Criteria andAUNumEqualTo(String value) {
            addCriterion("a_u_num =", value, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumNotEqualTo(String value) {
            addCriterion("a_u_num <>", value, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumGreaterThan(String value) {
            addCriterion("a_u_num >", value, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumGreaterThanOrEqualTo(String value) {
            addCriterion("a_u_num >=", value, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumLessThan(String value) {
            addCriterion("a_u_num <", value, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumLessThanOrEqualTo(String value) {
            addCriterion("a_u_num <=", value, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumLike(String value) {
            addCriterion("a_u_num like", value, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumNotLike(String value) {
            addCriterion("a_u_num not like", value, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumIn(List<String> values) {
            addCriterion("a_u_num in", values, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumNotIn(List<String> values) {
            addCriterion("a_u_num not in", values, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumBetween(String value1, String value2) {
            addCriterion("a_u_num between", value1, value2, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAUNumNotBetween(String value1, String value2) {
            addCriterion("a_u_num not between", value1, value2, "aUNum");
            return (Criteria) this;
        }

        public Criteria andAFimgIsNull() {
            addCriterion("a_fimg is null");
            return (Criteria) this;
        }

        public Criteria andAFimgIsNotNull() {
            addCriterion("a_fimg is not null");
            return (Criteria) this;
        }

        public Criteria andAFimgEqualTo(String value) {
            addCriterion("a_fimg =", value, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgNotEqualTo(String value) {
            addCriterion("a_fimg <>", value, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgGreaterThan(String value) {
            addCriterion("a_fimg >", value, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgGreaterThanOrEqualTo(String value) {
            addCriterion("a_fimg >=", value, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgLessThan(String value) {
            addCriterion("a_fimg <", value, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgLessThanOrEqualTo(String value) {
            addCriterion("a_fimg <=", value, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgLike(String value) {
            addCriterion("a_fimg like", value, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgNotLike(String value) {
            addCriterion("a_fimg not like", value, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgIn(List<String> values) {
            addCriterion("a_fimg in", values, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgNotIn(List<String> values) {
            addCriterion("a_fimg not in", values, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgBetween(String value1, String value2) {
            addCriterion("a_fimg between", value1, value2, "aFimg");
            return (Criteria) this;
        }

        public Criteria andAFimgNotBetween(String value1, String value2) {
            addCriterion("a_fimg not between", value1, value2, "aFimg");
            return (Criteria) this;
        }

        public Criteria andALimgIsNull() {
            addCriterion("a_limg is null");
            return (Criteria) this;
        }

        public Criteria andALimgIsNotNull() {
            addCriterion("a_limg is not null");
            return (Criteria) this;
        }

        public Criteria andALimgEqualTo(String value) {
            addCriterion("a_limg =", value, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgNotEqualTo(String value) {
            addCriterion("a_limg <>", value, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgGreaterThan(String value) {
            addCriterion("a_limg >", value, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgGreaterThanOrEqualTo(String value) {
            addCriterion("a_limg >=", value, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgLessThan(String value) {
            addCriterion("a_limg <", value, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgLessThanOrEqualTo(String value) {
            addCriterion("a_limg <=", value, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgLike(String value) {
            addCriterion("a_limg like", value, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgNotLike(String value) {
            addCriterion("a_limg not like", value, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgIn(List<String> values) {
            addCriterion("a_limg in", values, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgNotIn(List<String> values) {
            addCriterion("a_limg not in", values, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgBetween(String value1, String value2) {
            addCriterion("a_limg between", value1, value2, "aLimg");
            return (Criteria) this;
        }

        public Criteria andALimgNotBetween(String value1, String value2) {
            addCriterion("a_limg not between", value1, value2, "aLimg");
            return (Criteria) this;
        }

        public Criteria andAStatusIsNull() {
            addCriterion("a_status is null");
            return (Criteria) this;
        }

        public Criteria andAStatusIsNotNull() {
            addCriterion("a_status is not null");
            return (Criteria) this;
        }

        public Criteria andAStatusEqualTo(Integer value) {
            addCriterion("a_status =", value, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusNotEqualTo(Integer value) {
            addCriterion("a_status <>", value, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusGreaterThan(Integer value) {
            addCriterion("a_status >", value, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("a_status >=", value, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusLessThan(Integer value) {
            addCriterion("a_status <", value, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusLessThanOrEqualTo(Integer value) {
            addCriterion("a_status <=", value, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusIn(List<Integer> values) {
            addCriterion("a_status in", values, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusNotIn(List<Integer> values) {
            addCriterion("a_status not in", values, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusBetween(Integer value1, Integer value2) {
            addCriterion("a_status between", value1, value2, "aStatus");
            return (Criteria) this;
        }

        public Criteria andAStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("a_status not between", value1, value2, "aStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}